import axios1 from '@/utils/request'
export const addCart = (Id, Num, SkuId) => {
  return axios1({
    method: 'POST',
    url: '/cart/add',
    data: {
      goodsId: Id,
      goodsNum: Num,
      goodsSkuId: SkuId
    }
  })
}
export const getCartList = () => {
  return axios1({
    url: '/cart/list',
    method: 'get'
  })
}
export const updateCartList = (data) => {
  return axios1({
    url: '/cart/update',
    method: 'post',
    data: data
  })
}
export const deleteCart = (Ids) => {
  return axios1({
    url: '/cart/clear',
    method: 'post',
    data: {
      cartIds: Ids
    }
  })
}
